package oop.controller.action.sectstruct;

import oop.controller.action.DefaultAction;
import oop.db.dao.SectionStructureDAO;

public class MoveUpAction extends DefaultAction {
	
	@Override
	public void performImpl() throws Exception {
		long sectionId = Long.parseLong(request.getParameter("ssu_id"));
		long testId = Long.parseLong(request.getParameter("ssu_testid"));
		
		SectionStructureDAO.moveUp(sectionId);
		
		setNextAction("teststruct.view&tsv_id=" + testId);
	}

}
